home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10431 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  793 b 

  1. Path: news.npiec.on.ca!freenet!afrankow
  2. From: afrankow@freenet (Adam Frankowski)
  3. Newsgroups: comp.lang.c
  4. Subject: [Q] how to specify binary values
  5. Date: 17 Mar 1996 19:52:32 GMT
  6. Organization: Niagara Peninsula Free-Net
  7. Message-ID: <4ihqi0$9mt@brain.npiec.on.ca>
  8. NNTP-Posting-Host: freenet.npiec.on.ca
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11.  
  12. I need to know how to specify binary numbers I know this sounds stupid 
  13. :^) but I dont know..
  14.  
  15. I know hex is 0x02A or of the sort.. I know OCTAL
  16.  
  17. i know how to do binary in asm
  18.  
  19. 01010101b
  20.  
  21. but can figure it our in C.. i though maybe i could have been 0x01010b
  22. but it didnt work...
  23.  
  24. Or is this possible.. I dont want to have to AND and OR all the values 
  25. manually :^)
  26.  
  27. Please reply via E-MAIL
  28.  
  29.  
  30. --
  31.  
  32. Adam Frankowski,
  33. E-Mail:  afrankow@freenet.npiec.on.ca
  34.  
  35.